Skip to content

[docs] Components' props#3990

Merged
m-bert merged 13 commits intomainfrom
@mbert/docs-props-types
Feb 25, 2026
Merged

[docs] Components' props#3990
m-bert merged 13 commits intomainfrom
@mbert/docs-props-types

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented Feb 20, 2026

Description

This PR updated props listed in components:

  • ReanimatedDrawerLayout
  • ReanimatedSwipeable

It also adds shared MouseButton component.

Test plan

Read docs 🤓

Copilot AI review requested due to automatic review settings February 20, 2026 12:05
@m-bert m-bert added the Documentation Documentation change/enhancement label Feb 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the documentation by extracting duplicated mouseButton prop documentation into a reusable shared component and removes this prop from components where it's not actually supported.

Changes:

  • Created a new shared mouse-button.mdx component to consolidate repeated mouseButton documentation
  • Replaced duplicated mouseButton sections in gesture documentation files (tap, pan, long-press, fling) with the shared component
  • Replaced duplicated mouseButton section in reanimated-drawer-layout.mdx with the shared component
  • Removed mouseButton documentation from reanimated_swipeable.mdx as it's an unused/unsupported prop for that component
  • Fixed grammatical error in the description text

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx New shared component containing the mouseButton prop documentation with improved grammar
packages/docs-gesture-handler/docs/gestures/use-tap-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-pan-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-long-press-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-fling-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx Removed unsupported mouseButton prop documentation
packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx Replaced inline mouseButton documentation with shared component import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


import MouseButtonProp from './\_shared/mouse-button.mdx';


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Suggested change

Copilot uses AI. Check for mistakes.

import MouseButtonProp from './\_shared/mouse-button.mdx';


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines +12 to +13


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Copilot uses AI. Check for mistakes.
@m-bert m-bert changed the title [docs] Remove unused props [docs] Components' props Feb 23, 2026
@m-bert m-bert marked this pull request as ready for review February 23, 2026 11:56
@m-bert m-bert requested review from Copilot and j-piasecki February 23, 2026 11:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@j-piasecki j-piasecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address copilot's comments

@m-bert m-bert merged commit 2e34b85 into main Feb 25, 2026
4 checks passed
@m-bert m-bert deleted the @mbert/docs-props-types branch February 25, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation change/enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants